package ThreadBasic.yan;

import java.util.Scanner;

/**
 * @author yyh
 * @create 2020-11-05 12:19
 */
public class Tff {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String s = scanner.nextLine();

//        System.out.println(s.toUpperCase());
        System.out.println(toLowerCase(s));

//        System.out.println(reverse(s));

    }

    public static String reverse(String s){

        StringBuffer sb = new StringBuffer();
        for (int i = s.length()-1; i >= 0 ; i--) {
            char c = s.charAt(i);

            if(Character.isUpperCase(c)){
                Character.isLowerCase(c);
                sb.append(c);
            }else{
                Character.isUpperCase(c);
                sb.append(c);
            }
        }

        return sb.toString();
    }

    public static String toLowerCase(String str) {
        StringBuffer sb = new StringBuffer();
        for(int i = 0; i < str.length(); i++){
            char c = str.charAt(i);
            if(Character.isUpperCase(c)){

                sb.append(Character.toLowerCase(c));
            }else{
                sb.append(c);
            }
        }

        return sb.toString();
    }
}
